<div class="m8">
    <button class="btn-flex w-full c-text-w fs20 bg-green" ui-sref="indent">查看全部</button>
</div>
<div class="paper-b m8">
    <table class="table table-hover  table-striped">
        <thead>
            <tr>
                <th>订单概况</th>
                <th></th>
            </tr>
        </thead>
        <tbody>
            <tr>
                <td>创建时间</td>
                <td ng-bind="indent.addTime"></td>
            </tr>
            <tr>
                <td>ID</td>
                <td ng-bind="indent.id"></td>
            </tr>
            <tr>
                <td>状态</td>
                <td ng-bind="indent.status"></td>
            </tr>
            <tr>
                <td>类型</td>
                <td ng-bind="indent.type"></td>
            </tr>
            <tr>
                <td>总价</td>
                <td ng-bind="indent.money"></td>
            </tr>
        </tbody>
    </table>
    <table class="table table-hover  table-striped" ng-repeat="mygoods in goods">
        <caption class="pt24 pb8 pl8">
            <h5>商品详情</h5>
        </caption>
        <thead>
            <tr>
                <th>套餐详情</th>
                <th>是否已使用</th>
                <th></th>
            </tr>
        </thead>
        <tbody>
            <tr ng-repeat="list in mygoods.couponGroupModel.couponMyGoodsModels">
                <td ng-bind="list.goods.name" ng-class="list.isUsed?'f-d':''"></td>
                <td ng-class="list.isUsed?'list-used':'list-unused'"></td>
                <td>
                    <button class="btn-flex bg-green c-text-w w-full" ng-click="change_used_status(this.list)">操作</button>
                </td>
            </tr>
        </tbody>
    </table>
    <table class="table table-hover table-striped">
        <thead>
            <tr>
                <th>用户信息</th>
                <th></th>
            </tr>
        </thead>
        <tbody>
            <!-- <tr ng-repeat="(key, value) in indent.user">
                <td ng-bind="key"></td>
                <td ng-bind="value"></td>
            </tr> -->
            <tr>
                <td>姓名</td>
                <td ng-bind="indent.user.nickName"></td>
            </tr>
            <tr>
                <td>手机</td>
                <td ng-bind="indent.user.mobile"></td>
            </tr>
        </tbody>
    </table>
</div>
<style>
.f-d {
    text-decoration: line-through;
}

.list-used::after {
    content: '已使用';
}

.list-unused::after {
    content: '未使用';
}
</style>
